<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Hello Page</title>
</head>
<body>

<h1>hello,html!</h1>
<p th:text="${username}">当前用户:黄晓明</p >

<div th:if="${per != null}" th:object="${per}">
    <p>id: <span th:text="*{id}">Sebastian</span>.</p >
    <p>name: <span th:text="*{username}">Pepper</span>.</p >
    <p>birthday: <span th:text="*{birthday}">Saturn</span>.</p >
    <p>birthday:<span th:text="*{#dates.format(birthday, 'yyyy/MM/dd HH:mm:ss')}">2025-10-10</span></p >

</div>

</body>
</html>